package com.njupt.service.impl;

import com.njupt.common.pojo.TaotaoResult;
import com.njupt.mapper.TbItemDescMapper;
import com.njupt.pojo.TbItemDesc;
import com.njupt.service.ItemDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 11:50 2018/5/28
 * @Modified By:
 **/
@Service
public class ItemDescServiceImpl implements ItemDescService {

    @Autowired
    private TbItemDescMapper tbItemDescMapper;

    @Override
    public TaotaoResult getItemDesc(long id) {
        TbItemDesc tbItemDesc = tbItemDescMapper.selectByPrimaryKey(id);
        return TaotaoResult.build(200,"查询成功",tbItemDesc);
    }
}
